package br.com.fixtrader.quoteserver;

import algotrader.book.BookManager;

public class BookTask implements Runnable {
	
	private BookManager bookManager;
	private String message;
	
	public BookTask(BookManager bookManager,String message) {
		this.bookManager = bookManager;
		this.message = message;
	}
	
	@Override
	public void run() {
		String values[] = message.split(":");
		if(values[0].equals("T")) {
			// atualizacao nivel 1
		} else if (values[0].equals("B")) {
			// atualizavao do book
			if(values[2].equals("A")) {
				// add oferta
				
			}
		}
	}

}
